package com.zhao.objectAdapter.adaptor;

import com.zhao.classAdapter.adapter.FlvI;
import com.zhao.objectAdapter.adapter.impl.Flv;
import com.zhao.objectAdapter.target.PlayMedia;

public class FlvtoMp4Adapter implements PlayMedia {

    private FlvI flv;

    public FlvtoMp4Adapter(FlvI flv) {
        this.flv = flv;
    }

    @Override
    public void play() {
        System.out.println("Adapter flv to mp4 ...");
        flv.playFlv();
    }
}
